/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.uoc.tds.pec3.comun;
import javax.swing.JOptionPane;
import edu.uoc.tds.pec3.i18n.TDSLanguageUtils;

/**
 *
 * @author Yoli
 */
public class PEC3Exception extends Exception {
    private static final long serialVersionUID = 1L;
    public static final String ERR_NOT_FILE = TDSLanguageUtils.getMessage("ERR_NOT_FILE");
    public static final String ERR_CONE_SERV = TDSLanguageUtils.getMessage("ERR_CONE_SERV");
    public static final String ERR_PROPERTIES = TDSLanguageUtils.getMessage("ERR_PROPERTIES");
    public static final String ERR_BD = TDSLanguageUtils.getMessage("ERR_BD");
    public static final String ERR_DESCON = TDSLanguageUtils.getMessage("ERR_DESCON");
    public static final String ERR_NOT_BOUND = TDSLanguageUtils.getMessage("ERR_NOT_BOUND");
    public static final String ERR_URL = TDSLanguageUtils.getMessage("ERR_URL");
    public static final String ERR_REMOTO = TDSLanguageUtils.getMessage("ERR_REMOTO");

    public PEC3Exception() {

    }

    public PEC3Exception(String s) {
        JOptionPane.showMessageDialog(null, s, "Error", JOptionPane.ERROR_MESSAGE);
    }
}
